<script setup>
import { EditPen, Lock, Delete } from '@element-plus/icons-vue'
// 组件中使用，接收传参的
defineProps({
  row: Object,
  default: {}
})
// 组件中使用，接收事件的
const emits = defineEmits(['operate1', 'operate2', 'operate3', 'operate4', 'operate5', 'changeStatus']);
</script>
<template>
  <el-button class="btn1" link type="primary" :icon="EditPen" @click="emits('operate1')">Edit</el-button> 
  <el-button class="btn1" link type="primary" :icon="Lock" @click="emits('operate2')">Reset Password</el-button> 
  <el-button class="btn2" link type="success" :icon="Delete" @click="emits('operate3')">Delete</el-button> 
</template>
<style lang="less" scoped>
.btn2{
  --el-button-text-color: #FB393C;
}
</style>